public static void main(String[] args)
{

        double loanAmount = 100;
        int loanTermMonths = 240;
        double annualInterestRate = 4.5;

        double principalInterest = LoanCalculator.calcPrinInt(loanAmount, loanTermMonths, annualInterestRate);
        System.out.println("等额本金还款法的总利息: " + principalInterest + " 万元");

        double equalInstallmentInterest = LoanCalculator.calcEqInstInt(loanAmount, loanTermMonths, annualInterestRate);
        System.out.println("等额本息还款法的总利息: " + equalInstallmentInterest + " 万元");
    }
